// ref: https://blog.csdn.net/erwuhuoche/article/details/80368310

#pragma once

#include<stddef.h>

#define HeapMaxSize 1000
typedef int HeapType;
typedef int (*Compare)(HeapType a, HeapType b);     // 函数指针

typedef struct{
    HeapType data[HeapMaxSize];
    int size;
    Compare cmp;
}Heap;

void HeapSort2(HeapType array[], int size, Compare cmp);